package gov.pbc.nn.kjgl.fxq.organInfor.entity;

import java.io.Serializable;
import javax.persistence.*;
import com.bstek.dorado.annotation.PropertyDef;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import gov.pbc.nn.core.entity.BaseEntity;
import gov.pbc.nn.kjgl.fxq.organInfor.entity.OrganInfor;;

/**
 * t_fxq_organ_person_infor:
 */
@Entity
@Table(name = "t_fxq_organ_person_infor")
public class OrganPersonInfor extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Column(name = "PERSON_TYPE_")
	@PropertyDef(label = "人员类别", description = "PERSON_TYPE_:")
	private int personType;

	@Column(name = "PERSON_NUM_", length = 255)
	@PropertyDef(label = "人员编号", description = "PERSON_NUM_:")
	private int personNum;

	@Column(name = "PERSON_NAME_", length = 255)
	@PropertyDef(label = "人员姓名", description = "PERSON_NAME_:")
	private String personName;

	@Column(name = "PERSON_SEX_")
	@PropertyDef(label = "人员性别", description = "PERSON_SEX_:")
	private int personSex;

	@Column(name = "OFFICE_PHONE_", length = 255)
	@PropertyDef(label = "办公电话", description = "OFFICE_PHONE_:")
	private String officePhone;

	@Column(name = "MOBLE_PHONE_", length = 255)
	@PropertyDef(label = "手机号码", description = "MOBLE_PHONE_:")
	private String moblePhone;

	@Column(name = "STATE_")
	@PropertyDef(label = "人员状态", description = "STATE_:")
	private int state;

	@Column(name = "ORGANINFOR_ID_")
	private String organInforId;
	
	@ManyToOne
	@JoinColumn(name = "ORGANINFOR_ID_", updatable = false, insertable = false)
	private OrganInfor organInfor;

	public String getOrganInforId() {
		return organInforId;
	}

	public void setOrganInforId(String organInforId) {
		this.organInforId = organInforId;
	}
	
	public void setPersonType(int personType) {
		this.personType = personType;
	}

	public int getPersonType() {
		return personType;
	}

	public void setPersonNum(int personNum) {
		this.personNum = personNum;
	}

	public int getPersonNum() {
		return personNum;
	}

	public void setPersonName(String personName) {
		this.personName = personName;
	}

	public String getPersonName() {
		return personName;
	}

	public void setPersonSex(int personSex) {
		this.personSex = personSex;
	}

	public int getPersonSex() {
		return personSex;
	}

	public void setOfficePhone(String officePhone) {
		this.officePhone = officePhone;
	}

	public String getOfficePhone() {
		return officePhone;
	}

	public void setMoblePhone(String moblePhone) {
		this.moblePhone = moblePhone;
	}

	public String getMoblePhone() {
		return moblePhone;
	}

	public void setState(int state) {
		this.state = state;
	}

	public int getState() {
		return state;
	}
	
	public void setOrganInfor(OrganInfor organInfor) {
		this.organInfor = organInfor;
	}

	public OrganInfor getOrganInfor() {
		return organInfor;
	}
}
